package com.kc.gb.feign.strip.sopport.dto;

import com.kc.gb.feign.strip.sopport.enums.StripLightOnOff;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Collections;
import java.util.List;

@Data
@NoArgsConstructor
public class StripCommand {
    StripLightOnOff lightOnOff;
    public List<Integer> lightNo;

    public StripCommand(Integer lightNo){
        this.lightNo = Collections.singletonList(lightNo);
        this.lightOnOff = StripLightOnOff.LIGHT_OFF;
    }

    public StripCommand turnOn(){
        this.lightOnOff = StripLightOnOff.LIGHT_ON;
        return this;
    }

    public StripCommand turnOff(){
        this.lightOnOff = StripLightOnOff.LIGHT_OFF;
        return this;
    }
}
